<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="vue.js"></script>
 
</head>
<body>
  <div id="app">
    
    <ul>
      <li v-for="(p,index) in arr">
        <h1>{{ p.name }}</h1>
        <p> {{ p.age }} </p>
        <p> {{p.gender}} </p>
      </li>
    </ul>
   
  </div>
  <script>
    let vm = new Vue({
      el:"#app",
      data:{
        arr:[
          {
            name:"小明",
            age:18,
            gender:'男'
          },
          {
            name:"小红",
            age:19,
            gender:"女"
          },{
            name:"小花",
            age:20,
            gender:"女"
          }
        ]
      }
     
    })
  </script>
</body>
</html>